package fu.capstone.hanoicityguide.business.bo.nightlife;

import java.util.ArrayList;

import android.content.Context;
import fu.capstone.hanoicityguide.business.model.Category;
import fu.capstone.hanoicityguide.business.model.NightLife;
import fu.capstone.hanoicityguide.dataaccess.nightlife.NightLifeDAO;
import fu.capstone.hanoicityguide.dataaccess.nightlife.NightLifeDAOImp;

public class NightLifeBOImp implements NightLifeBO {
	private Context context;

	private NightLifeDAO dao;

	public Context getContext() {
		return context;
	}

	public void setContext(Context context) {
		this.context = context;
	}

	public NightLifeBOImp() {

	}

	public NightLifeBOImp(Context ctx) {
		this.context = ctx;
		dao = new NightLifeDAOImp(context);
	}

	@Override
	public ArrayList<NightLife> listNightLife(ArrayList<String> filter,
			String sorter) {
		// get list attraction by filter and sorter
		return dao.listNightLife(filter, sorter);
	}

	@Override
	public ArrayList<NightLife> searchNightLife(String keyWord,
			ArrayList<String> filter, String sorter) {
		return dao.searchNightLife(keyWord, filter, sorter);
	}

	@Override
	public NightLife browseNightLife(int nightlifeID) {
		return dao.browseNightLife(nightlifeID);
	}

	@Override
	public String[] getListType(int categoryID) {
		return dao.getListType(categoryID);
	}

	@Override
	public ArrayList<Category> getListCategory(String filter) {
		return dao.getListCategory(filter);
	}

}
